<div ng-controller="loanRepay" >
<div class="ngdialog-message">

<form class="form-horizontal" method="get" action="#">
<style>
.col-sm-2 {padding-left: 0;}
.col-sm-1 {width: 9.333333%;}
.ngdialog-close{display:none;}
.form-group>div{
   width:45%;
   margin:0 auto;
}
.chargehead{
    color:#fff;
    background-color:#ff9a66;
}
 .ngdialog.ngdialog-theme-plain>div.ngdialog-content{
    padding:0;
}
.form-horizontal .form-group {
    margin-right: -15px;
    margin-left: 0px; 
}
.repay_blue{
    color:#3288e6;
    font-size:16px;  
    margin:0 auto;   
}
.repay_blue>span{  
    font-size:20px;
    font-family:microsoft yahei;
}
.repay_hink{
    color:#999;
    font-size:14px;    
    margin:0 auto;
    
}
</style>
<div class="panel-heading font-bold chargehead">
    还款操作
</div>
<div class="panel-body">

    <div class="form-group">
        <div >            
            <br/>
            <label class="repay_blue">当期应还：<span>￥{{repayAmount}}元</span></label>
            <br/>
            <label class="repay_hink">资金余额：￥{{totalAmount}}元</label>
            <br/>            
            <br/>
        </div>        
    </div> 
    <div ng-show='isSetPassword'>
        <div class="col-sm-12" ng-show='enoughMoney'>
            <div class="input-group" style='width:46%;margin:0 auto;'>
                <p >
                    <span class="">资金密码：</span>
                    <input type="password" ng-model="transPassword" class="form-control" style='width:60%;float:none' placeholder='请输入资金密码'>
                </p>
            </div>
        </div>    
        <div class="col-sm-12" ng-hide='enoughMoney'>
            <div class="input-group" style='width:46%;margin:0 auto;'>
                <p >
                    <span class="">余额不足：</span>
                    <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="goRecharge()">前去充值</button>
                </p>
            </div>
        </div>    
        <br/>
        <br/>  
        <br/>
        <div class="ngdialog-buttons" ng-show='enoughMoney'>
            <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog()">关闭</button>
            <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="modifySure1()">确定</button>
        </div>
    </div>
    <div ng-hide='isSetPassword' >
        <div style="margin-left: 5%;">
            尚未设置交易密码
        </div>
        <div class="panel-body">            
                <label class="col-sm-2  control-label">资金密码:</label>
                <div class="col-sm-4">
                    <input type="search" class="form-control ng-pristine ng-valid ng-touched" ng-model="newPassword" />
                </div>                    
            <br/>
            <br/>           
            
                <label class="col-sm-2  control-label">确认密码:</label>
                <div class="col-sm-4">
                    <input type="search" class="form-control ng-pristine ng-valid ng-touched" ng-model="comfirmedPassword" />
                </div>                    
            <br/>
            <br/>       
        <div class="ngdialog-buttons">
            <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog()">取消</button>
            <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="saveData()">保存</button>
        </div>
        <br/>
        </div>
    </div>
    <!-- <div ng-hide='isSetPassword'>
        <div class="panel-heading font-bold chargehead">
                   尚未设置交易密码
        </div>
        <div class="panel-body">
            <div class="form-group">
                <p style='font-size:18px;font-size:bold;'><label class="">&nbsp;前往修改密码页设置交易密码</label>
                </p>                 
            </div>
            <br/>
            <br/>
        <div class="ngdialog-buttons">
            <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog()">关闭</button>
            <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="SetPassword()">确定</button>
        </div>
        </div>
    </div> -->
</form>
</div>